package basic.thread.again;

/**
 * @author bingo
 * @create 2018-02-09 15:21
 **/
public class Demo2 {

    public static void main(String[] args) {
        new Thread(){
            @Override
            public void run() {
                while (true){
                    System.out.println("basic.thread.......");
                }

            }
        }.start();
        new Thread(new Runnable(){

            @Override
            public void run() {
                while(true){
                    System.out.println("runnable......");
                }

            }
        }).start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("1.....");
            }
        }){
            @Override
            public void run() {
                while (true){
                    System.out.println("2.....");
                }
            }
        }.start();


    }



}
